<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="template/base.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Simpla Admin</title>
<link rel="stylesheet" type="text/css" href="${basePath}/style/index.css" media="all">
<script type="text/javascript" src="${basePath}/script/jquery.js"></script>
</head>
<body><div id="body-wrapper"> fin<!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar">
			<%@ include file="template/left.jsp" %>
		</div> <!-- End #sidebar -->
		
		<!-- 右边 -->
		
		<div id="main-content">
				
				<div class="content-box">
					<div class="nav">
						<a href="${basePath}/main.action">首页</a> > <a href="project!list.action?id=${project.id }">${project.projectname }</a> > 
						<c:choose>
							<c:when test="${type == 1}">
								创建任务
							</c:when>
							<c:when test="${type == 2}">
								添加错误
							</c:when>
							<c:when test="${type == 3}">
								添加想法
							</c:when>
						</c:choose>
					</div>
				</div>
			
				
				
				<div class="content-box">
					<div class="content-box-header">
					<c:choose>
						<c:when test="${type == 1}">
							<h3 style="cursor: s-resize;"><img src="${basePath}/images/task.png" style="margin-right:5px;"/>任务</h3>
						</c:when>
						<c:when test="${type == 2}">
							<h3 style="cursor: s-resize;"><img src="${basePath}/images/bug.png" style="margin-right:5px;"/>错误</h3>
						</c:when>
						<c:when test="${type == 3}">
							<h3 style="cursor: s-resize;"><img src="${basePath}/images/idea.png" style="margin-right:5px;"/>想法</h3>
						</c:when>
					</c:choose>
						<div class="add"><img src="${basePath}/images/add.png" alt="添加任务" /></div>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							
							<form action="issues!save.action" method="post">
								<input type="hidden" name="issues.type" value="${type }"/>
								<input type="hidden" name="projectid" value="${project.id }"/>
								<label>标题：</label>
								<input type="text" name="issues.title" class="large-input"/>
								<label>内容：</label>
								<textarea name="issues.content" style="height:300px"></textarea>
								<label>里程碑：</label>
								<select name="milestoneid" style="width:99%">
									<option value="0">--请选择里程碑--</option>
									<c:forEach items="${project.milestones}" var="milestone">
										<option value="${milestone.id }">${milestone.name}</option>
									</c:forEach>
								</select>
								<input type="submit" class="button" value="保存" style="margin-top:20px"/>
							</form>
							
							
							
						</div>
					</div> 
				</div>
				
				
			
			<div id="footer">
				<small>
						© Copyright 2011 焦作凯盛信息技术有限公司 | Powered by <a href="http://www.kaishengit.com">凯盛软件</a> | <a href="#">Top</a>
				</small>
			</div>
			
		</div>
		
	</div>
  

    <div id="facebox" style="display: none;">       <div class="popup">         <table>           <tbody>             <tr>               <td class="tl"></td><td class="b"></td><td class="tr"></td>             </tr>             <tr>               <td class="b"></td>               <td class="body">                 <div class="content">                 </div>                 <div class="footer">                   <a href="#" class="close">                     <img src="${basePath}/images/closelabel.gif" title="close" class="close_image">                   </a>                 </div>               </td>               <td class="b"></td>             </tr>             <tr>               <td class="bl"></td><td class="b"></td><td class="br"></td>             </tr>           </tbody>         </table>       </div>     </div>

</body>
</html>
